package com.zwh;

import com.zwh.service.InjectionService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class IocApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(IocApplication.class, args);
        InjectionService service = context.getBean(InjectionService.class);
        service.print();
    }
}